<?php
	$id = $_POST['id'];
	$id_produk = $_POST['id_produk'];
	$ukuran = $_POST['ukuran'];
	$stok = $_POST['stok'];
	
	if(isset($_POST['submit'])){
		$sttmt = $koneksi->exec("update stok set id_ukuran=$ukuran, stok='$stok' where id_stok=$id");
	}
	$url_sukses="utama.php?module=mod_stok&id=$id_produk";
	if($sttmt){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>